<script src="/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
<script>
<{include file='product/onepiece/js/onepiece.js'}>
</script>
<link href="/css/product/receiving.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
    .myTab table td{ border:0;text-align:left;}
    .shiptype .sel{color:red;}
    .hidden{display:none;}
    
    
    /* css for timepicker */
	.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
	.ui-timepicker-div dl { text-align: left; }
	.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
	.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
	.ui-timepicker-div td { font-size: 90%; }
	.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
</style>
<style type="text/css">
    .myTab table td{ border:0;text-align:center;}
	.subTabTr{display:none;}
    .subTab{width:100%;font-style:italic;background:white;}
	.subTab tr:hover{}
	.subTab .subTabHeader{font-weight:800;background:#cccccc}
	.subTab .subTabHeader:hover{font-weight:800;background:#cccccc}
	.sort{cursor:pointer;}
	.up{font-size:15px}
	</style>
<div class="search_div">
    <form id="sForm" name="sForm">
		<div>
		<label>
			<{$lang.orders_code}>:<input name='orders_code' type='text' id='orders_code' size="15"/>
		</label>&nbsp;
		<label>
			<{$lang.sku}>:<input name='<{$lang.sku}>' type='text' id='<{$lang.sku}>' size="8"/>
		</label>&nbsp;
		<label>
			<{$lang.customer_code}>:<input name='customer_id' type='text' id='customer_id' size="8"/>
		</label>&nbsp;
		<label>
			<{$lang.product}><{$lang.category}>:<select name="category" onchange='initData(0);' style="width: 100px;">
				<option value=""><{$lang.pls}><{$lang.category}></option>
				<{foreach from=$categorys item=category}>
					<option value="<{$category.poc_id}>"><{$category.poc_value}></option>
				<{/foreach}>
			</select>
		</label>&nbsp;
		
		
		<input class="button search" type="button" value="<{$lang.search}>">&nbsp;&nbsp;
		<input class="button print" type="button" value="<{$lang.print}>">&nbsp;&nbsp;
		</div>
		<div style='padding:5px 0;'>
			<label>
				<{$lang.shipping_method}>:<select name="ship_type" onchange='initData(0);'>
					<option value=""><{$lang.pls}></option>
					<{foreach from=$ship_type key=key item=ship_tp}>
						<option value="<{$key}>"><{$ship_tp}></option>
					<{/foreach}>
				</select>
			</label>&nbsp;
			 <select name="dateType" id='dateType' onchange="initData(0);">
				<option value="add_time"><{$lang.create}><{$lang.date}></option>
				<!-- 
				<option value="print_time"><{$lang.print}><{$lang.date}></option>
				<option value="ship_time"><{$lang.ship}><{$lang.date}></option>
				 -->
			</select>			
			<input type="text" id="dateFrom" name="dateFrom" class="myInput" size='15'/> ~
			<input type="text" id="dateTo" name="dateTo" class="myInput"  size='15'/>
		</div>
	</form>
</div>
<form id="printForm" action="/product/off-shelf-one-piece/print-orders" method="post" target="_blank">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="myTab">
    <tbody>
    <tr class="even-tr">
		<th><input type="checkbox" class="checkAll"/></th>
        <th><{$lang.No}></th><th><{$lang.orders_code}></th>
        <th class='sort' sortColumn="customer_id" sortMethod ='desc'><{$lang.user}></th>
        <th><{$lang.status}></th>
        <th class='sort' sortColumn="shipping_method" sortMethod ='desc'><{$lang.shipping_method}></th>
        <th><{$lang.referNo}></th>
        <th class='sort' sortColumn="add_time" sortMethod ='desc'><{$lang.create}><{$lang.date}></th>
        <th class='sort' sortColumn="ws_code" sortMethod ='desc'><{$lang.yuyue}><{$lang.ws_code}></th>
        <th><{$lang.remark}></th>
    </tr>
    </tbody>
    <tbody id="loadData"></tbody>
</table>
<div id="pickup_user"></div>
<div id="pickup_number"></div>
<div id="pickup_type"></div>
</div>
</form>

<form style="display:none" id="printFormHtml" action="/product/off-shelf-one-piece/print-order-html" method="post" target="_blank">
	<textarea id="print_html" name="print_html">
	
	</textarea>
</form>
<div class="pagination"></div>

<div id="ladingDialog"  title="<{$lang.system}><{$lang.tip}>">
	
</div>

<div id="confirmDialog" title="<{$lang.system}><{$lang.msg}>">
	
</div>
<div id="confirmDialog1" title="<{$lang.pls}><{$lang.pickup_user}><{$lang.or}><{$lang.fengshu}>">
    
	
<div id="select_picking_members" name="select_picking_members">
</div>


	
</div>
<div id="confirmDialog2" title="<{$lang.system}><{$lang.msg}>" style="text-align:center;font-size:25px;line-height:100px;">
</div>